<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script language="javascript" src="/js/LodopFuncs.js"></script>
</head>
<body>
<button onclick="Preview2()">打印测试</button>
<script type="text/javascript">
    var LODOP;
    function Preview2() {
        LODOP=getLodop();
        LODOP.PRINT_INITA(0,0,522,333,"打印控件功能演示_Lodop功能_自定义纸张2");
        LODOP.SET_PRINTER_INDEX(-1);
        LODOP.SET_PRINT_PAGESIZE(1,300,800,"");
        AddPrintContent("10101010101010","郭德强");
        LODOP.PREVIEW();
    };

    function AddPrintContent(strCode,strName) {
        LODOP.SET_PRINT_STYLE("FontColor",16711680);
        LODOP.ADD_PRINT_RECT(62,16,459,217,0,1);
        LODOP.ADD_PRINT_TEXT(15,137,157,25,"交通银行（      ）");
        LODOP.SET_PRINT_STYLEA(2,"FontName","隶书");
        LODOP.SET_PRINT_STYLEA(2,"FontSize",11);
        LODOP.SET_PRINT_STYLEA(2,"FontColor",0);
        LODOP.ADD_PRINT_TEXT(41,213,100,20,"2008年11月9日");
        LODOP.ADD_PRINT_TEXT(17,281,100,20,"个人业务受理书");
        LODOP.SET_PRINT_STYLEA(4,"FontColor",0);
        LODOP.ADD_PRINT_TEXT(75,37,431,20,"机构:109110 交易代码:010110");
        LODOP.ADD_PRINT_TEXT(102,37,431,20,"个人网银用户签约成功！");
        LODOP.ADD_PRINT_TEXT(129,37,431,20,"网点名称：东城分行营业部");
        LODOP.ADD_PRINT_TEXT(156,37,431,20,"主卡卡号："+strCode);
        LODOP.ADD_PRINT_TEXT(183,37,431,20,"客户姓名："+strName);
        LODOP.ADD_PRINT_TEXT(212,37,431,20,"登陆方式：用户名登陆");
        LODOP.ADD_PRINT_TEXT(17,218,60,20,"东城分行");
        LODOP.ADD_PRINT_TEXT(249,169,221,20,"以上内容已核实确认无误，客户签名：");
        LODOP.ADD_PRINT_TEXT(106,484,23,127,"第二联客户留联");
        LODOP.SET_PRINT_STYLEA(13,"FontColor",0);
        LODOP.ADD_PRINT_TEXT(284,21,74,20,"授权员");
        LODOP.SET_PRINT_STYLEA(14,"FontColor",0);
        LODOP.ADD_PRINT_TEXT(284,200,74,20,"复核员");
        LODOP.SET_PRINT_STYLEA(15,"FontColor",0);
        LODOP.ADD_PRINT_TEXT(284,346,74,20,"经办员");
        LODOP.SET_PRINT_STYLEA(16,"FontColor",0);
    };
</script>
</body>
</html>